package com.acoreful.acf2admin.web.servlet;

import java.io.IOException;
import java.util.Collection;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;

public class FileMngServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8560978177669592087L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		String datas=req.getParameter("datas");
		System.out.println(datas);
		super.doGet(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		String datas=req.getParameter("datas");
		System.out.println(datas);
		datas=req.getParameter("body");
		System.out.println(datas);
		Collection<Part> parts= req.getParts();
		System.out.println(parts.size());
	}
	
	

}
